package Domo6;

import java.util.Map;
import java.util.Scanner;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
      Map<String, String[]> map = Province.m;
        Set cs = map.keySet();
        for (Object o : cs) {
            System.out.println(o);
        }
        Scanner sc = new Scanner(System.in);
        while (true){
            System.out.println("请输入省份：");
            String province = sc.next();
            if(!map.containsKey(province)){
                System.out.println(
                        "输入错误，请重新输入！"
                );
            }else {
                String[] cities = map.get(province);
                for (String city : cities) {
                    System.out.println(city);
                }

            }
            break;
        }

    }
}
